<?php
defined('IN_TS') or die('Access Denied.');

$userid = aac('user')->isLogin();

switch($ts){
    case "":

        $planid = intval($_GET['planid']);

        //方案信息
        $strPlan = $new['plan']->find('plan',array(
            'planid'=>$planid,
        ));

        if($strPlan==''){
            header ( "HTTP/1.1 404 Not Found" );
            header ( "Status: 404 Not Found" );
            $title = '404';
            include pubTemplate ( "404" );
            exit ();
        }

        $title = '申领方案';
        include template('join');
        break;

    case "do":



        break;
}